import React from 'react'
import { useRoutes } from 'react-router-dom'
import { ROuterList } from './router'
import WithCpn from '../components'
const Router:React.FC=()=>{
    const element=useRoutes(ROuterList)
  return (
    <div>
      {element}
    </div>
  )
}
export default WithCpn(Router)